Skip to content

#4208 generate organizations#4266

Merged
wavehassman merged 6 commits into
feature/seed-data-revampfrom
#4208-generate-organizations
Jun 8, 2026
Merged

#4208 generate organizations#4266
wavehassman merged 6 commits into
feature/seed-data-revampfrom
#4208-generate-organizations

Conversation

@Steph375

@Steph375 Steph375 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Changes

Made some fixes to the context and distribution of the roles made sure organizations was set up correctly.

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4208

@Steph375 Steph375 self-assigned this Jun 7, 2026
@Steph375 Steph375 changed the base branch from develop to feature/seed-data-revamp June 7, 2026 20:22
Comment thread src/backend/src/prisma/seed/user.process.ts
Comment thread src/backend/src/prisma/seed/user.process.ts
Comment thread src/backend/src/prisma/seed/user.process.ts
import { Organization, Prisma, Role } from '@prisma/client';
import { RoleEnum } from 'shared';
import { getUserQueryArgs } from '../prisma-query-args/user.query-args.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a topic for later but if this file does get big enough, it may be worth considering splitting them by process.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree this is worth watching as more processes are added. I do think having a shared seed context is useful because later seed processes depend on records created by earlier ones, but if the file grows too much, we could reduce duplication by having each process own its output type and using context.ts mainly as an aggregate/re-export point.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Exactly.

@Santiordon Santiordon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread src/backend/src/prisma/seed.ts Outdated
Comment thread src/backend/src/prisma/seed/user.process.ts Outdated

@wavehassman wavehassman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HUGE

@wavehassman wavehassman merged commit cc0f9d8 into feature/seed-data-revamp Jun 8, 2026
4 checks passed
@wavehassman wavehassman deleted the #4208-generate-organizations branch June 8, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Seed Data] - Generate Organizations

3 participants